package cn.edu.xmu.oomall.liquidation.microservice;

import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.time.LocalDateTime;

@FeignClient(name = "activity-service")
public interface ShareActivityService {
    @GetMapping("/internal/shareactivities/caculate/{id}")
    InternalReturnObject<Long> calculatePoint(@PathVariable("id")Long id,
                                        @RequestParam Long price,
                                        @RequestParam Long oldQuantity,
                                        @RequestParam Long orderItemQuantity);
}
